//
//  JXAppInfo.m
//  JiaoX
//
//  Created by 尹桥印 on 14/11/18.
//  Copyright (c) 2014年 北京娇羞科技有限公司. All rights reserved.
//

#import "JXAppInfo.h"
#import "NavigationItem.h"
@implementation JXAppInfo


- (NSDictionary *)objectClassInArray
{
    return @{@"navigList" : [NavigationItem class]};
}

/**
 *  当从文件中解析出一个对象的时候调用
 *  在这个方法中写清楚：怎么解析文件中的数据
 */
- (id)initWithCoder:(NSCoder *)decoder
{
    if (self = [super init]) {
        self.appUrl = [decoder decodeObjectForKey:@"appUrl"];
        self.appVersion = [decoder decodeObjectForKey:@"appVersion"];
        self.appContent = [decoder decodeObjectForKey:@"appContent"];
        self.appAbout = [decoder decodeObjectForKey:@"appAbout"];
        self.navigList = [decoder decodeObjectForKey:@"navigList"];
    }
    return self;
}

/**
 *  将对象写入文件的时候调用
 *  在这个方法中写清楚：要存储哪些对象的哪些属性，以及怎样存储属性
 */
- (void)encodeWithCoder:(NSCoder *)encoder
{
    [encoder encodeObject:self.appUrl forKey:@"appUrl"];
    [encoder encodeObject:self.appVersion forKey:@"appVersion"];
    [encoder encodeObject:self.appContent forKey:@"appContent"];
    [encoder encodeObject:self.appAbout forKey:@"appAbout"];
    [encoder encodeObject:self.navigList forKey:@"navigList"];
}




@end
